<div id='content-index'>
<div>
<a href="<?php echo $this->baseUrl.'/widget/create'; ?>">Create New Widget</a>
</div>
<?php
	foreach($this->widgetList as $widget){
		echo '<div class="category-box">';
		echo '<h1>'.$this->escape($widget->title).'</h1>';
		echo '<div id="actionbox">';
		echo '<a href="'.$this->baseUrl.'/widget/edit/id/'.$widget->id.'"> Edit </a><br />';
		echo '<a href="'.$this->baseUrl.'/widget/delete/id/'.$widget->id.'"> Delete </a><br />';
		echo '<a href="'.$this->baseUrl.'/widget/add/sidebar/homepage_widgets/id/'.$widget->id.'"> Add to Homepage </a><br />';
		echo '<a href="'.$this->baseUrl.'/widget/remove/sidebar/homepage_widgets/id/'.$widget->id.'"> Remove From Homepage </a><br />';
		echo '<a href="'.$this->baseUrl.'/widget/add/sidebar/linklist_widgets/id/'.$widget->id.'"> Add to Link List </a><br />';
		echo '<a href="'.$this->baseUrl.'/widget/remove/sidebar/linklist_widgets/id/'.$widget->id.'"> Remove From Link List </a><br />';
		echo '</div>';
		echo '</div>';
	}
?>
<div class='clearfix'></div>
</div>